package com.company.app;

import com.company.app.components.*;
import javax.swing.SwingUtilities;

/**
 * MainApplication
 *
 */
public class App {
    public void executeMathod(String[] args) {
        PreponderantFrame mainFrame = new PreponderantFrame();
        if (args.length > 0) {
            mainFrame.file_url_argument = args[0];
        }
        // 在 invokeLater 中添加回调函数
        SwingUtilities.invokeLater(() -> {
            mainFrame.kernel();
        });
    }

    public static void main(String[] args) {
        App app = new App();
        app.executeMathod(args);
    }
}
